package thread;

public class demo4 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            while (true) {
                System.out.println("thread");
            }

        },"线程1");
        thread.start();
    }
}
